<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    {{seo}}
    <title>{{$title}}</title>
    <meta name="keyword" content="{{$keyword}}" />
    <meta name="description" content="{{$describe}}" />
    {{/seo}}
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/reset.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/swiper_2.7.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/header.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/footer.css">
    <link rel="stylesheet" href="{{$static_path}}/static/css/dh/detail_dh.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/common.css">
    <script src="{{$static_path}}/static/common/js/jquery-1.11.3.js"></script>
    <style>
        .detail-content-txt>p{
            text-indent: 0;
        }
        .detail-content-txt>p img{
            max-height: 100%
        }
    </style>
</head>

<body>
    <!-- 头部部分 -->
    {{include file="header.tpl"}}
    <!-- 内容区域 -->
    <div class="dh-main">
        <div class="college-banner"></div>
        <div class="main-content">
            <div class="main-left">
                <div class="dh-top1">
                    <p class="h-top">期货学院</p>
                </div>
                <ul class="dh-list">
                    {{navigation parentid="8"}}
                        {{foreach $list as $k => $v}}
                            <li> <a href="{{$v['url']}}" {{if $get.category|in_array:$v['allchildurl']}}class="dh-acitve"{{/if}}>{{$v['name']}}</a></li>
                        {{/foreach}}
                    {{/navigation}}
                </ul>
            </div>
            <div class="main-right">
                {{crumbs url=$smarty.get.category}}
                <div class="right-txt-box">
                    <h1>{{$title}}</h1>
                    <div class="wz">
                        <span class="wz-spans">您的位置：<a href="">首页</a> > {{$crumbs}} </span>
                    </div>
                </div>
                {{/crumbs}}
                {{details}}
                <div class="detail-content">
                    <h1>{{$title}}</h1>
                    <p class="title-ps">
                        <span class="title-p1">上传日期：<em>{{$add_time}}</em></span>
                        <span>点击量：{{$pc_count}}</span>
                        {{if $source != ''}}<span class="title-p2">来源：<em>{{$source}}</em></span>{{/if}}
                        {{if $author != ''}}<span class="title-p3">作者：<em>{{$author}}</em></span>{{/if}}
                    </p>
                    <div class="detail-content-txt">
                        {{$main_content}}
                        <div class="fx">
                            <span>分享到：</span>
                            <span class="bdsharebuttonbox" style="    float: right;"><a href="#" class="bds_more"
                                    data-cmd="more"></a><a href="#" class="bds_tsina" data-cmd="tsina"
                                    title="分享到新浪微博"></a><a href="#" class="bds_weixin" data-cmd="weixin"
                                    title="分享到微信"></a><a href="#" class="bds_qzone" data-cmd="qzone"
                                    title="分享到QQ空间"></a><a href="#" class="bds_tieba" data-cmd="tieba"
                                    title="分享到百度贴吧"></a></span>
                            <script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {}, "image": { "viewList": ["tsina", "weixin", "qzone", "tieba"], "viewText": "分享到：", "viewSize": "16" }, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["tsina", "weixin", "qzone", "tieba"] } }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
                        </div>
                    </div>
                </div>
                {{/details}}
                <div>
                </div>

            </div>

        </div>


    </div>

    <!--放一个id为footer的div,把footer.html加载到这块-->
    {{include file="footer.tpl"}}
    <!-- 底部部分 -->
</body>

<!-- 加载头尾 -->

<script src="{{$static_path}}/static/common/js/load.js"></script>
<script src="{{$static_path}}/static/common/js/swiper_2.7.js"></script>
<script>


// var cookiestr = document.cookie.slice(4)
//    var cookieTxt = cookiestr.split('=')[0].split(';')[0]
//     //  h1标签赋值
//     $('.right-txt-box>h1')[0].innerText = cookieTxt
//     $('.dh-list>li>a').each(function (v, m) {
//         //  根据cookie 循环判断添加active效果
//         if (this.innerText == cookieTxt) {
//             $(this).addClass('dh-acitve')
//         }
//     })
</script>

</html>